package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StationYearKpiMapper;
import com.ruoyi.system.domain.StationYearKpi;
import com.ruoyi.system.service.IStationYearKpiService;

/**
 * 站年数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-19
 */
@Service
public class StationYearKpiServiceImpl implements IStationYearKpiService 
{
    @Autowired
    private StationYearKpiMapper stationYearKpiMapper;

    /**
     * 查询站年数据
     * 
     * @param id 站年数据主键
     * @return 站年数据
     */
    @Override
    public StationYearKpi selectStationYearKpiById(Long id)
    {
        return stationYearKpiMapper.selectStationYearKpiById(id);
    }

    /**
     * 查询站年数据列表
     * 
     * @param stationYearKpi 站年数据
     * @return 站年数据
     */
    @Override
    public List<StationYearKpi> selectStationYearKpiList(StationYearKpi stationYearKpi)
    {
        return stationYearKpiMapper.selectStationYearKpiList(stationYearKpi);
    }

    /**
     * 新增站年数据
     * 
     * @param stationYearKpi 站年数据
     * @return 结果
     */
    @Override
    public int insertStationYearKpi(StationYearKpi stationYearKpi)
    {
        return stationYearKpiMapper.insertStationYearKpi(stationYearKpi);
    }

    /**
     * 修改站年数据
     * 
     * @param stationYearKpi 站年数据
     * @return 结果
     */
    @Override
    public int updateStationYearKpi(StationYearKpi stationYearKpi)
    {
        return stationYearKpiMapper.updateStationYearKpi(stationYearKpi);
    }

    /**
     * 批量删除站年数据
     * 
     * @param ids 需要删除的站年数据主键
     * @return 结果
     */
    @Override
    public int deleteStationYearKpiByIds(Long[] ids)
    {
        return stationYearKpiMapper.deleteStationYearKpiByIds(ids);
    }

    /**
     * 删除站年数据信息
     * 
     * @param id 站年数据主键
     * @return 结果
     */
    @Override
    public int deleteStationYearKpiById(Long id)
    {
        return stationYearKpiMapper.deleteStationYearKpiById(id);
    }
}
